import { createBrowserRouter } from 'react-router-dom'
import { lazy } from 'react'

const Exhibition = lazy(() => import('../pages/Exhibition Hall/Index'))
const Layout = lazy(() => import('../pages/layout/Index'))
const Home = lazy(() => import('../pages/home/Index'))
const Login=lazy(()=>import('../pages/login/Index'))
export const childroute = [
    {
        path: '/',
        element: <Home></Home>
    },

]
const route = createBrowserRouter([
    {
        path: '/',
        element: <Layout></Layout>,
        children: childroute
    },
    {
        path: '/ex',
        element: <Exhibition></Exhibition>
    },
    {
        path:'/login',
        element:<Login></Login>
    }
])
export default route